package com.qms.repast.net;


import com.qms.repast.service.IUserService;

/**
 * @author 泅渡者
 * @date 2018/6/6 0006.
 * @describe: 统一调度接口
 */

public class ServiceFactory {
    public static IUserService iUserService;
    protected static final Object MONITOR = new Object();

    public static IUserService getUserServiceInstance(){
        synchronized (MONITOR){
            if(iUserService==null){
                iUserService = new MainRetrofit().getIUserService();
            }
            return iUserService;
        }
    }
}
